﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thallo {
    [AttributeUsage(AttributeTargets.Parameter)]
    public sealed class ParameterParserAttribute:Attribute {

        public ParameterParserAttribute(Type parser) {
            this.Parser = parser;
        }

        public Type Parser { get; set; }

        public IParameterParser GetParser() {
            return Activator.CreateInstance(Parser) as IParameterParser;
        }
    }
}
